﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Architecture.Domian.Entity
{
    /// <summary>
    /// 用户信息表
    /// </summary>
    [Table("user_info")]
    public class UserInfo
    {
        /// <summary>
        /// 用户id
        /// </summary>
        [Key]
        public int UserId { get; set; }
        /// <summary>
        /// 用户名
        /// </summary>
        [StringLength(50)]
        public string? LoginName { get; set; }
        /// <summary>
        /// 用户性别
        /// </summary>
        public bool UserGender { get; set; }
        /// <summary>
        /// 用户密码
        /// </summary>
        [StringLength(50)]
        public string? PassWord { get; set; }
        /// <summary>
        /// 用户所在省
        /// </summary>
        public int UserProvince { get; set; }
        /// <summary>
        /// 用户所在市
        /// </summary>
        public int UserCity { get; set; }
        /// <summary>
        /// 用户所在县
        /// </summary>
        public int UserArea { get; set; }
        /// <summary>
        /// 详细地址
        /// </summary>
        [StringLength(500)]
        public string? FullAddress { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        [StringLength(30)]
        public string? CreatePerson { get; set; } = "张三";
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateDate { get; set; } = DateTime.Now;
        /// <summary>
        /// 修改人
        /// </summary>
        [StringLength(30)]
        public string? RevisePerson { get; set; } = null;
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? ReviseDate { get; set; } = null;
        /// <summary>
        /// 是否删除标志
        /// </summary>
        public bool IsDelete { get; set; }
        /// <summary>
        /// 部门Id
        /// </summary>
        public int DepartmentId { get; set; }
    }
}
